package com.enums;

import java.util.Enumeration;
import java.util.Vector;

public class Vector2Enum {

	public static void main(String[] args) {
		Vector v = new Vector();
		for (int i = 0; i < 10; i++) {
			v.add(Integer.toString(i));
		}

		Enumeration e = v.elements();
		while (e.hasMoreElements()) {
			System.out.print(e.nextElement() + " ");
		}

	}

}
